import request from "@/utils/request";

// 查询列表
export function showStoreList(query) {
  return request({
    url: "/system/store/showStoreList",
    method: "get",
    params: query,
  });
}
//获取经济人列表
export function listBroker(query) {
  return request({
    url: "/system/employee/businessList",
    method: "get",
    params: query,
  });
}
//添加
export function addRentalHouse(data) {
  return request({
    url: "/system/leaseOrder",
    method: "post",
    data,
  });
}
//获取列表
export function getRentalHouseList(query) {
  return request({
    url: "/system/leaseOrder/list",
    method: "get",
    params: query,
  });
}
//查询
export function getRentalHouse(id) {
  return request({
    url: "/system/leaseOrder/" + id,
    method: "get",
  });
}
//编辑
export function editRentalHouse(data) {
  return request({
    url: "/system/leaseOrder",
    method: "put",
    data,
  });
}
//删除
export function deleteRentalHouse(id) {
  return request({
    url: "/system/leaseOrder/" + id,
    method: "delete",
  });
}
